package com.tbit.main.service.impl;

import com.tbit.main.constant.DaoParamConstant;
import com.tbit.main.dao.core.WeiXinDepositLogDao;
import com.tbit.main.pojo.WeiXinDepositLog;
import com.tbit.main.service.WeiXinDepositLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @author LMY
 * @create 2022-03-31 9:30
 */
@Service("weiXinDepositLogService")
public class WeiXinDepositLogServiceImpl implements WeiXinDepositLogService {

    @Autowired
    private WeiXinDepositLogDao weiXinDepositLogDao;

    @Override
    public WeiXinDepositLog getAccountIdTime(Integer accountId, String startTime, String endTime) {
        Map<String, Object> map = new HashMap<>();
        map.put(DaoParamConstant.accountId, accountId);
        map.put(DaoParamConstant.startTime, startTime);
        map.put(DaoParamConstant.endTime, endTime);
        return weiXinDepositLogDao.getAccountIdTime(map);
    }
}
